from selenium.webdriver.support.wait import WebDriverWait
def get_element(d,by,ele):
    return WebDriverWait(d,10,0.5).until(lambda x:x.find_element(by,ele))

def get_elements(d,by,ele):
    return WebDriverWait(d,10,0.5).until(lambda x:x.find_elements(by,ele))